<?php
	class List_newsmodel extends Model{
		function List_newsmodel(){
			parent::Model();
		}
		function getnewsindex($num,$field,$value,$tablename){
			$this->db->limit($num);
			$this->db->where($field,$value);
			$query=$this->db->get($tablename);
			return $query;
		}
	}